#ifndef SERIALCMD_H
#define SERIALCMD_H
#include "..\UserLib\sys\GlobalVariable.h"
#include "..\UserLib\include\serial.h"

typedef struct
{
   uint8  *Data;
   uint16 Capacity;
   uint16 Count;
}DataFrame;
void InitFrameDeal();
DataFrame * RxCmd();
void SendDataFrame(DataFrame *txFrame);
void SetRxAddr(uint8 devAddr);
void DataFrame_Write(DataFrame * frame,void *vals,uint8 Len);
void DataFrame_WriteByte(DataFrame *frame,uint8 val);

#endif
